﻿<%@ Page Title="" Language="C#" MasterPageFile="~/subpage.master" AutoEventWireup="true" CodeBehind="admin.aspx.cs" Inherits="Nhom14_HTTTHD_BuyMe.admin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h3>Danh sách hợp đồng thanh toán an toàn đã nhận tiền và&nbsp; thông tin quản lý</h3>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="id" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" 
                ReadOnly="True" SortExpression="id" />
            <asp:BoundField DataField="id_bid" HeaderText="id_bid" 
                SortExpression="id_bid" />
            <asp:BoundField DataField="type_bid" HeaderText="type_bid" 
                SortExpression="type_bid" />
            <asp:BoundField DataField="total" HeaderText="total" SortExpression="total" />
            <asp:BoundField DataField="timestamp" HeaderText="timestamp" 
                SortExpression="timestamp" />
            <asp:BoundField DataField="information" HeaderText="information" 
                SortExpression="information" />
            <asp:BoundField DataField="status" HeaderText="status" 
                SortExpression="status" />
            <asp:HyperLinkField DataNavigateUrlFields="id" 
                DataNavigateUrlFormatString="adminupdate.aspx?id={0}" Text="updateinfo" />
            <asp:HyperLinkField DataNavigateUrlFields="id" 
                DataNavigateUrlFormatString="delivery.aspx?id={0}" Text="trans" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:WebsitebrokenConnection %>" 
        SelectCommand="SELECT id, id_bid, type_bid, total, timestamp, information, status FROM [transaction] WHERE (status = '2') AND (payment_type = 1)">
    </asp:SqlDataSource>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SidebarContent" runat="server">
</asp:Content>
